import request from '@/utils/request'

// 查询系统编码列表
export function listSysCode(query) {
    return request({
        url: '/dictData/sysCode/list',
        method: 'get',
        params: query
    })
}

// 查询系统编码详细
export function getSysCode(id) {
    return request({
        url: '/dictData/sysCode/' + id,
        method: 'get'
    })
}

// 新增系统编码
export function addSysCode(data) {
    return request({
        url: '/dictData/sysCode',
        method: 'post',
        data: data
    })
}

// 修改系统编码
export function updateSysCode(data) {
    return request({
        url: '/dictData/sysCode',
        method: 'put',
        data: data
    })
}

// 删除系统编码
export function delSysCode(id) {
    return request({
        url: '/dictData/sysCode/' + id,
        method: 'delete'
    })
}
